
#include "gmatlab.h"

// void g_matlab_init();
void mexFunction(int nlhs, mxArray *lhs[], int nrhs, const mxArray *rhs[])
{
  GIBaseInfo *info;

  // Check and convert arguments
  if (nrhs != 0) g_matlab_error("gmatlab:numArg", "g_matlab_init() takes 0 arguments");
  if (nlhs != 0) g_matlab_error("gmatlab:numRet", "g_matlab_init() has 0 return values");
  
  // Call function
  g_matlab_init();
  
  // Prepare return value

  // Prevent this module (and thus libgobject) from being unloaded
  mexLock();  // Allows 'clear functions' wihout crashing MATLAB
}
